.config-table-common {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: calc(100vh - 126px);
  padding: 0 24px;
  background-color: #fff;
  border-radius: 8px;

  .config-table-form {
    padding-top: 24px;
    margin-bottom: 16px;

    :deep(.px-form-item) {
      width: 253px;
      margin-right: 16px;
      margin-bottom: 0;

      .px-input {
        width: 100%;
      }
    }

    :deep(.px-button + .px-button) {
      margin-left: 8px;
    }

    .form-item-start-date {
      width: 180px;
      margin-right: 2px;
    }

    .form-item-end-date {
      margin-left: 2px;
      width: 138px;

      :deep(.px-form-item__content) {
        margin-left: 0 !important;

        .px-input__wrapper {
          border-radius: 4px;
        }
      }
    }
  }

  .config-table-table-btns {
    display: flex;
    align-items: center;
    margin-bottom: 8px;

    :deep(.px-button + .px-button) {
      margin-left: 8px;
    }
  }

  .config-table-table {
    --px-table-border-color: #dfdfdf;

    :deep(.px-table__header) {
      thead {
        tr {
          background-color: #e7eefb !important;

          th {
            font-size: 13px;
            font-weight: bold;
            color: #000;
            background-color: #e7eefb !important;
          }
        }
      }
    }
  }

  .config-table-pagination {
    position: absolute;
    right: 8px;
    bottom: 0;
  }
}

.add-config-detail {
  position: relative;
  width: 100%;
  height: 100%;

  .add-config-content {
    height: calc(100vh - 195px);
    padding: 0 24px;
    background-color: #fff;
    border-radius: 8px;

    .info-form-wrap {
      margin-top: 16px;

      .info-form-header {
        display: flex;
        align-items: center;
        height: 46px;
        padding-left: 16px;
        font-size: 16px;
        font-weight: bold;
        line-height: 46px;
        color: rgb(0 0 0 / 80%);
        cursor: pointer;
        background: #e7eefb;
        border: 1px solid #dfdfdf;
        border-radius: 4px 4px 0 0;

        .px-icon {
          margin-left: 8px;
          font-size: 16px;
        }
      }

      .info-form-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 24px;
        border: 1px solid #dfdfdf;
        border-top: 0;
        border-radius: 0 0 4px 4px;

        :deep(.px-form-item) {
          .px-form-item__label {
            width: 200px;
          }

          .px-input {
            width: 300px;

            &.input-disable {
              .px-input__wrapper {
                background: #fff;

                .px-input__inner {
                  color: rgba(0, 0, 0, 0.8);
                  -webkit-text-fill-color: rgba(0, 0, 0, 0.8);
                }
              }
            }
          }

          .px-select-v2 {
            width: 300px;

            .px-select-v2__wrapper {
              cursor: pointer;
            }
          }
        }

        .photo-upload {
          :deep(.px-upload-list__item) {
            width: 96px;
            height: 96px;
          }

          :deep(.px-upload--picture-card) {
            display: block;
            text-align: center;
            --px-upload-picture-card-size: 96px;

            .px-icon {
              margin-top: 22px;
              margin-bottom: 8px;
            }

            .el-upload__text {
              font-size: 14px;
            }
          }
        }

        .file-upload {
          :deep(.px-upload-dragger) {
            padding: 0;
            width: 96px;
            height: 96px;

            .px-icon--upload {
              font-size: 40px;
              margin-top: 10px;
              margin-bottom: 8px;
            }

            .el-upload__text {
              font-size: 14px;
            }

            &:hover {
              color: var(--px-color-primary);
            }
          }

          :deep(.px-upload-list__item-info) {
            min-width: 240px;

            .px-upload-list__item-name {
              font-size: 16px;
            }
          }
        }
      }

      .spare-parts-table {
        --px-table-border-color: #dfdfdf;

        :deep(.px-table__header) {
          thead {
            tr {
              background-color: #e7eefb !important;

              th {
                font-size: 13px;
                font-weight: bold;
                color: #000;
                background-color: #e7eefb !important;
              }
            }
          }
        }

        :deep(.px-input-number) {
          width: 100%;
        }
      }
    }
  }

  .info-form-btns {
    padding-right: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    bottom: 0;
    background: #fff;
    width: 100%;
    height: 68px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.16);
  }
}